package com.nus.fellowmark.modules.assignment.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nus.fellowmark.common.utils.PageUtils;
import com.nus.fellowmark.entity.SubmissionEntity;
import com.nus.fellowmark.modules.assignment.dto.UploadSubmissionDTO;
import com.nus.fellowmark.modules.assignment.vo.MarkTaskVO;
import com.nus.fellowmark.modules.assignment.vo.SubmissionVO;
import io.swagger.models.auth.In;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author Chen Ruoyi
 * @email chenruoyisz@gmail.com
 * @date 2023-02-10  
 */
public interface SubmissionService extends IService<SubmissionEntity> {

    PageUtils queryPage(Map<String, Object> params);

    SubmissionVO upload(UploadSubmissionDTO uploadSubmissionDTO);

    List<MarkTaskVO> getAssignedTasks(Integer loginId);

    List<MarkTaskVO> getFeedback(Integer loginId, Integer assignmentId);

    SubmissionEntity getByStuAndAsg(Integer parseInt, Integer assignmentId);

}

